package cn.zyjblogs.server.role.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author zhuyijun
 */
@AllArgsConstructor
@NoArgsConstructor
@Builder
@Data
@TableName("role_permission_rel")
public class RolePermissionRelPo implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键，uuid
     */
    @TableId(value = "id", type = IdType.INPUT)
    private String id;

    /**
     * 角色表主键，uuid
     */
    @TableField("role_id")
    private String roleId;
    /**
     * 权限组表主键，uuid
     */
    @TableField("permission_id")
    private String permissionId;

    /**
     * 租户id
     */
    @TableField("tenant_id")
    private String tenantId;

}
